/*
 * Copyright (c) 2021. Moses All Right Reserved
 */

package com.moses.design_patterns.command;

/**
 * @author Moses
 * @email shenhuohui@gmail.com
 * @date 2021/4/18 21:33
 */
public class Command2 extends Command {

    public Command2(Excutor excutor) {
        super(excutor);
    }

    @Override
    public void excute() {
        System.out.println("request command 2");
        // 让执行者执行响应命令
        this.excutor.excute();
    }
}
